package com.orphan.limitedDeal.service.impl;

import com.orphan.limitedDeal.dao.PromotionOrderMapper;
import com.orphan.limitedDeal.po.PromotionOrders;
import com.orphan.limitedDeal.service.PromotionOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("PromotionOrderServiceImpl")
public class PromotionOrderServiceImpl implements PromotionOrderService {
    @Autowired
    PromotionOrderMapper promotionOrderMapper;
    @Override
    public boolean addPromotionOrder(PromotionOrders promotionOrders) {
        int i=promotionOrderMapper.addPromotionOrder(promotionOrders);
        if(i > 0){
            return true;
        }else{
            return false;
        }
    }
}
